//
//  LYVideoNoDataView.m
//  LYLiveApp
//
//  Created by QD on 16/9/1.
//  Copyright © 2016年 览益信息科技. All rights reserved.
//

#import "LYVideoNoDataView.h"

@interface LYVideoNoDataView ()
@property (weak, nonatomic) IBOutlet UIButton *refreshBtn;

@end

@implementation LYVideoNoDataView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.refreshBtn.layer.cornerRadius = 3;
    self.refreshBtn.layer.masksToBounds = YES;
    self.refreshBtn.layer.borderColor = [UIColor whiteColor].CGColor;
    self.refreshBtn.layer.borderWidth = 1.0f;

}

- (IBAction)nvRotateAction:(id)sender {
    
    !self.nvRotateBlock?:self.nvRotateBlock();
}

#pragma mark ----- event response
- (IBAction)refreshAction:(id)sender {
    if (self.refreshBlock) {
        self.refreshBlock();
    }
}

- (IBAction)backAction:(id)sender {
    
    self.backBlock ? self.backBlock():nil;    
}



+ (instancetype)viewWithXib
{
    LYVideoNoDataView *view = [[[UINib nibWithNibName:@"LYVideoNoDataView" bundle:nil] instantiateWithOwner:self options:nil] lastObject];
    return view;
}

@end
